Improve struct packing in GdkWindowImplWayland
authorMatthias Clasen <mclasen@redhat.com>
Sun, 22 Sep 2013 03:35:02 +0000 (23:35 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 22 Sep 2013 03:50:55 +0000 (23:50 -0400)
gdk/wayland/gdkwindow-wayland.c

index 5e001f137f542b346716e9fc9b0a3c5dd049e705..d0aac9083e790b0ad82d9248908f199877b46223 100644 (file)
@@ -104,8 +104,11 @@ struct _GdkWindowImplWayland
   struct wl_shell_surface *shell_surface;
   struct gtk_surface *gtk_surface;
   unsigned int mapped : 1;
-  GdkWindow *transient_for;
+  unsigned int fullscreen : 1;
+  unsigned int use_custom_surface : 1;
+  unsigned int pending_commit : 1;
   GdkWindowTypeHint hint;
+  GdkWindow *transient_for;
 
   /* The surface which is being "drawn to" to */
   cairo_surface_t *cairo_surface;
@@ -124,32 +127,23 @@ struct _GdkWindowImplWayland
 
   int focus_count;
 
-  gulong map_serial;    /* Serial of last transition from unmapped */
-
-  cairo_surface_t *icon_pixmap;
-  cairo_surface_t *icon_mask;
-
   /* Time of most recent user interaction. */
   gulong user_time;
 
   GdkGeometry geometry_hints;
   GdkWindowHints geometry_mask;
 
+  guint32 grab_time;
   GdkDevice *grab_device;
   struct wl_seat *grab_input_seat;
-  guint32 grab_time;
 
-  gboolean fullscreen;
   struct
     {
       int width, height;
     } saved_fullscreen, saved_maximized;
 
-  gboolean use_custom_surface;
-
-  guint32 scale;
-  gboolean pending_commit;
   gint64 pending_frame_counter;
+  guint32 scale;
 };
 
 struct _GdkWindowImplWaylandClass